Avoid failure TFBlipModelTest::test_pipeline_image_to_text
#31827
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Currently,
is failing on
main
after (#31342)See https://app.circleci.com/pipelines/github/huggingface/transformers/97187/workflows/81b63940-fd42-4a6a-aafe-404301fafc1d/jobs/1285954
There is a slight difference between
Pipeline.__init__
andpipeline
: the later one haswhich we should have a check on if
torch
is available. I will open another PR for that.Also for 2
Failed: Timeout >120.0s
: the fix for them is the same as their non_fp16
versions.FAILED tests/models/vits/test_modeling_vits.py::VitsModelTest::test_pipeline_feature_extraction_fp16 - Failed: Timeout >120.0s
FAILED tests/models/efficientnet/test_modeling_efficientnet.py::EfficientNetModelTest::test_pipeline_image_feature_extraction_fp16 - Failed: Timeout >120.0s